using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
namespace Webcar.Interface
{
    public interface IPurview
    {
        List<int> GetRolePurviewList(string groupid);
        List<int> GetUserPurviewList(string userid);
        List<int> GetUserAllPurviewList(string userid);
        List<int> GetUserRolePurviewList(string userid);

        List<string> GetUserRoleList(string userid);
        
        DataSet GetAllPurview();

        void SaveRolePurview(string roleid, List<int> purview_id_list);
        void DeleteRole(string groupid);
        int CheckPagePurview(string userid,string pageurl);
        
        List<string> GetUserListByDept(string deptcode);
        void SaveDeptUserPriview(string deptcode, List<string> user_list);
        void SaveUserPurview(string userid, List<int> purview_id_list, List<string> role_id_list);
    }
}
